package zdream.pmfield.stage.message;

import java.util.Objects;

import zdream.pmfield.stage.action.StageAction;

/**
 * @author Zdream
 * @date 2023-12-21
 * @since 0.0.1
 */
public class ActionAbortMessage extends StageMessage {
	public final StageAction action;
	public final String reason;

	public ActionAbortMessage(StageAction action, String reason) {
		this.action = Objects.requireNonNull(action);
		this.reason = Objects.requireNonNull(reason);
	}

	@Override
	public String toString() {
		return String.format("[AB] 行动 %s 被取消了: %s", action, reason);
	}
}
